import request from '@/utils/request'

// 查询航标基础信息列表
export function listNavigationMark(query) {
  return request({
    url: '/system/navigationMark/list',
    method: 'get',
    params: query
  })
}

// 查询航标基础信息详细
export function getNavigationMark(id) {
  return request({
    url: '/system/navigationMark/' + id,
    method: 'get'
  })
}

// 新增航标基础信息
export function addNavigationMark(data) {
  return request({
    url: '/system/navigationMark',
    method: 'post',
    data: data
  })
}

// 修改航标基础信息
export function updateNavigationMark(data) {
  return request({
    url: '/system/navigationMark',
    method: 'put',
    data: data
  })
}

// 删除航标基础信息
export function delNavigationMark(id) {
  return request({
    url: '/system/navigationMark/' + id,
    method: 'delete'
  })
}

// 查询部门下航标
export function getDeptNavigationMarkList(query) {
  return request({
    url: '/system/navigationMark/deptNavigationMarkList',
    method: 'get',
    params: query
  })
}